{% extends 'jobs/base.html' %}

{% block toptab %}
<h3>
    Recently posted jobs.
</h3>
{% endblock %}

{% block text %}
  {% for job in jobs_list %}
        <div class="post">
            
            <div class="posttop">
                <h4>{{job.name}}</h4>
            </div>  
            <div class="postitem">
            {{job.description|linebreaks|urlize|truncatewords:30}}
            <a href={{job.get_absolute_url}}>Read more ...</a>
            </div>
            </div>
  {% endfor %}
{% endblock %}

{% block sidebar %}
<h2>Sort</h2>
  <ul>
    <li>
      <a href="/jobs/?order=name">Sort by Name</a>    </li>
    <li>
      <a href="/jobs/?order=created_on">Sort by Date</a>    </li>
    <li>
  
{% endblock %}

  {% block pagination %}
  {% if is_paginated %}
  {% if has_previous %}
  <span class="pre">&laquo;<a href=".?page={{previous}}">Previous Post</a></span>
  {% endif %}
    {% if has_next %}
  <span class="next"><a href=".?page={{next}}">Next Post</a>&raquo;</span>
  {% endif %}
  {% endif %}
 
   
 <div class="clear2"></div>
  {% endblock %}